import { combineReducers } from 'redux';
import {CHANGE_CONDITION} from '../actions/condition';

let conditionInit = {
  //初始的数据获取条件
  pagination: { pageSize: 2, total: 2, current: 1},
  query: {

  },
  table: "_User"
}

function condition(state=conditionInit, action){
    switch (action.type) {
      case CHANGE_CONDITION:
        return Object.assign({}, state, action.condition);
      default:
      return state;

    }
}

export default condition
